package com.bkgy.modular.tbdsjprocessrulelibrary.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bkgy.modular.tbdsjprocessrulelibrary.entity.TbDsjProcessRuleLibrary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工艺规则库表dao接口
 *
 * @author 生成器生成
 * @date 2022-08-01 15:13:18
 */
@Mapper
public interface TbDsjProcessRuleLibraryDao extends BaseMapper<TbDsjProcessRuleLibrary> {

    /**
     * 添加记录
     *
     * @param tbDsjProcessRuleLibrary 对象实体
     */
	void insertDataTbDsjProcessRuleLibrary(TbDsjProcessRuleLibrary tbDsjProcessRuleLibrary);

    /**
     * 根据主键删除对象
     *
     * @param indocno 对象主键
     */
	void deleteDataTbDsjProcessRuleLibraryOne(@Param("process_rule_variable") String process_rule_variable);

    /**
     * 删除多个对象
     *
     * @param value sql语句
     */
	void deleteDataTbDsjProcessRuleLibraryMany(String value);

    /**
     * 修改记录
     *
     * @param tbDsjProcessRuleLibrary 对象实体
     */
	void updateDataTbDsjProcessRuleLibrary(TbDsjProcessRuleLibrary tbDsjProcessRuleLibrary);


    /**
     * 分页查看查看记录
     *
     * @param pageIndex 第几页
     * @param pageSize  每页总数
     * @return 对象数据集合
     */
	List<TbDsjProcessRuleLibrary> findDataTbDsjProcessRuleLibraryByPage(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("process_rule_variable") String process_rule_variable, @Param("variable_description") String variable_description);
	List<TbDsjProcessRuleLibrary> findDataTbDsjProcessRuleLibraryNoPage(@Param("process_rule_variable") String process_rule_variable, @Param("variable_description") String variable_description);

    /**
     * 根据条件查看记录的总数
     *
     * @return 对象数据集合
     */
	Integer findDataTbDsjProcessRuleLibraryByPageSize(@Param("process_rule_variable") String process_rule_variable, @Param("variable_description") String variable_description);

    /***
     * 根据主键查询信息
     * @param indocno 用户id
     * @return
     */
	TbDsjProcessRuleLibrary findDataTbDsjProcessRuleLibraryByIndocno(@Param("indocno") Long indocno);

    /**
     * 查看记录
     *
     * @return 对象数据集合
     */
	List<TbDsjProcessRuleLibrary> findDataTbDsjProcessRuleLibrary();

}
